package com.jfinal.demo.service;

import com.jfinal.demo.model.ShoolInfo;
import com.jfinal.demo.model.ShoolInfoDao;
import com.jfinal.plugin.activerecord.Page;

import java.util.List;

/**
 * 学校service层接口
 * @author tanghailan
 * @date 2020-12-17 15:19
 */
public interface ShoolInfoService {
    //获取学校信息
    Page<ShoolInfo> getShoolInfoList(int pageNumber,int pageSize);
    //添加学校信息
    Boolean addShoolInfo(String sh_city,
                         String sh_shool);
    //根据id删除学校
    int deleteShoolInfo(Long id);
    //修改学校
    Boolean updateShoolInfo(Integer sh_id,
                            String sh_city,
                            String sh_shool);
    //根据id获取学校信息
    ShoolInfo getById(Long id);
}
